package br.com.almeida.drinks.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity  
@Table(name = "funcionario")  
@PrimaryKeyJoinColumn(name="id")  
@Inheritance(strategy=InheritanceType.JOINED)  
public class Funcionario extends Pessoa{
	

	private static final long serialVersionUID = 1L;
	
	@Column
	private Double salario;
	@Column
	private Date admissao;
	@Column
	private Date demissao;
	
	
	public Double getSalario() {
		return salario;
	}
	public void setSalario(Double salario) {
		this.salario = salario;
	}
	public Date getAdmissao() {
		return admissao;
	}
	public void setAdmissao(Date admissao) {
		this.admissao = admissao;
	}
	public Date getDemissao() {
		return demissao;
	}
	public void setDemissao(Date demissao) {
		this.demissao = demissao;
	}
	
	

}
